package cn.cdcoder.solr;

import java.util.Random;

/**
 * @author xusirun
 * @Date 2017/3/21 10:34
 **/
public   class BaseSort {

    protected static   int[] getData(int size){
        if(size<5){
            size=20;
        }
        Random random=new Random();
        int[] a =new int[size];
        for (int i = 0; i <size ; i++) {
            a[i]=random.nextInt();
        }
        random.nextInt();

        System.out.println("排序之前：");

        for (int i = 0; i < a.length; i++)
        {
            System.out.print(a[i] + "");
        }
        return a;
    }


}
